#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int  main()
{
    int x;
    while (scanf("%d", &x) != EOF)
    {
        int max_val = -1;
        


        for (int i = 1; i <= 9; i++)
        {
            scanf("%d", &x);
            if (max_val < x)
                max_val = x;

        }
        printf("%d\n", max_val);
    }
    return 0;
}
